package com.miciyun.springbootrabbitmqdemo.demos.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author mctec
 */
@Data
public class NoticeMessage implements Serializable {
    @NotBlank(message = "用户id不能为空")
    private String userId;
    @NotBlank(message = "消息内容不能为空")
    private String msgContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
}
